﻿@using Web7.Container.Html
@using Web7.Container.Localization
@model IEnumerable<Language>
@{
 
    Layout = Html.GetManagementLayout();
 
}

<div>
    <div >
       <h1>
        @T("Admin.Configuration.Languages")
        </h1>
    </div>
    <div style="text-align:left;margin:0 0 20 20">
         @Html.ActionLink("" + T("Admin.Configuration.Languages.Create") + "", "Create")
 
    </div>
</div>
<table  border="1"  cellpadding="0" cellspacing="0">
    
    <tr>
        <th>ID </th>
        <th>@T("Name")</th>
        <th>@T("LanguageCulture")</th>
        <th>@T("Published")</th> <th>@T("DisplayOrder")</th><th>@T("UniqueSeoCode")</th>
        <th>@T("Acions")</th>
    </tr>
    @foreach (var item in Model)
    {
                <tr >
                    <td width="200px"> @item.Id </td>
                    <td width="100px"> @item.Name </td>
                    <td width="200px"> @item.LanguageCulture </td>
                    <td width="50px"> @item.Published </td> <td width="50px"> @item.DisplayOrder </td><td width="50px"> @item.UniqueSeoCode </td>
                    <td width="400px">
                    @Html.ActionLink("" + T("Admin.Configuration.Languages.Edit") + "", "Edit", "Language", new { id = item.Id }, null)
                    |
                    @Html.ActionLink("" + T("Admin.Configuration.Languages.Del") + "", "Delete", "Language", new { id = item.Id }, null)
                    
                    |
                    @Html.ActionLink(T("Admin.Configuration.Languages.ViewResources").ToString(), "Resources", "Language", new { languageId = item.Id }, null)
                    </td>
                </tr>
    }

</table>